<template>
	<view class="content">
		<topSearch @getPosition='getPosition' @getLocation='getLocation'></topSearch>
		<weatherBody :position="position" :location="location"></weatherBody>
		<future :position="position"></future>
	</view>
</template>
 
<script>
	export default {

		data() {
			return {
				position: "",
				location: []
			}
		},
		onLoad() {

		},
		methods: {
			getPosition(res) {
				this.position = res
			},
			getLocation(res) {
				this.location = res
			}
		}
	}
</script>

<style lang="scss">

</style>